package pojo;

import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.value.ObservableValue;

public class huodongfabu {
    private String name;
    private String id;
    private String createtime;
    private String neirong;

    public huodongfabu(String name, String id, String createtime, String neirong) {
        this.name = name;
        this.id = id;
        this.createtime = createtime;
        this.neirong = neirong;
    }

    public ObservableValue<String> nameProperty() {
        return new SimpleStringProperty(name);
    }

    public ObservableValue<String> idProperty() {
        return new SimpleObjectProperty<>(id);
    }

    public ObservableValue<String> createtimeProperty() {
        return new SimpleObjectProperty<>(createtime);
    }

    public ObservableValue<String> neirongProperty() {
        return new SimpleStringProperty(neirong);
    }
}
